package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.commons.JsonResp;
import com.rongke.mapper.ChannelMapper;
import com.rongke.model.Channel;
import com.rongke.service.ChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ChannelServiceImpl
 * @ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class ChannelServiceImpl extends ServiceImpl<ChannelMapper, Channel> implements ChannelService {
    @Autowired
    private  ChannelMapper channelMapper;

    public List<Channel> selectListAll(Map map){

        return channelMapper.selectListAll(map);
    }


    public Integer selectListAllcount(Map map){

        return channelMapper.selectListAllcount(map);
    }

    public Integer newagent(){
        return channelMapper.newagent();
    }

    public List<Channel> selectCustomer(Map map){
        return channelMapper.selectCustomer(map);
    }



    public Integer selectCustomercount(Map map){
        return channelMapper.selectCustomercount(map);
    }

}